<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript" charset="UTF-8" src="../../../../js/class/vue.min.js"></script>
	</head>
	<body>
		<div id="vue-app">
			<div>{{title}}</div>
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el: "#vue-app",
				data: {
					title: "标题",
				},
				beforeCreate:function(){
					alert("beforeCreate");
				},
				created:function(){
					alert("created");
				},
				beforeMount:function(){
					alert("beforeMount");
				},
				mounted:function(){
					alert("mounted");
				},
				beforeUpdate:function(){
					alert("beforeUpdate");
				},
				updated:function(){
					alert("updated");
				},
				beforeDestroy:function(){
					alert("beforeDestroy");
				},
				destroyed:function(){
					alert("destroyed");
				},
				methods:{
					
				},
			});
			setTimeout(function(){
				vm.title = "电子账户";
			},1000);
			setTimeout(function(){
				vm.$destroy();
			},3000);
		</script>
	</body>
</html>